package com.rfs.design.chain;

import com.rfs.dto.ResponseDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 责任链上下文
 *
 * @author rfs
 * @date 2022/08/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class ProcessContext <T extends ProcessModel>{

    /** 代码 */
    private String code;
    /** 流程模型 */
    private T processModel;
    /** 需要中断 */
    private Boolean needBreak;
    /** 响应 */
    private ResponseDTO response;
}
